package Zuo2;

import Zuo.HelloSpring;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
        Rod helloSpring = (Rod)applicationContext.getBean("Rod");
        System.out.println(helloSpring);
        helloSpring.hua();
    }
}
